<?php if (function_exists('dynamic_sidebar') && dynamic_sidebar('Page Content Above')){?>
            <!--  <div class="allinone"> </div> all in one #end --> 
        <?php } else {?>  <?php }?>

    <?php if ( have_posts() ) : ?>
        <?php while ( have_posts() ) : the_post(); ?>
        <?php $post_images = bdw_get_images($post->ID,'large'); ?>

        <div class="entry">
            <div <?php post_class('single clear'); ?> id="post_<?php the_ID(); ?>">
                 
                <div class="post-content"><?php the_content(); ?>
                
		  <script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
            <link rel="stylesheet" type="text/css" href="<?php bloginfo('template_url'); ?>/js/fancybox/jquery.fancybox-1.3.4.css" media="screen" />
            <script type="text/javascript">
			var $ns = jQuery.noConflict();
                $ns(document).ready(function() {
         
                    $ns("a[rel=example_group]").fancybox({
                        'transitionIn'		: 'none',
                        'transitionOut'		: 'none',
                        'titlePosition' 	: 'over',
                        'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
                            return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
                        }
                    });
        
                });
        </script> 
    
    			
                <ul class="gallery">
                <?php
                if(count($post_images)>1)
				{
					for($im=0;$im<count($post_images);$im++)
					{
					?>
                      <li> <a href="<?php echo $post_images[$im];?>" rel="example_group" title="<?php the_title(); ?>" >   
                       <img src="<?php echo bloginfo('template_url'); ?>/thumb.php?src=<?php echo $post_images[$im];?>&amp;w=125&amp;h=125&amp;zc=1&amp;q=80<?php echo $thumb_url;?>"  alt="" /> 					  
                       </a> </li>
                     <?php	
					}
				}
				?>
                
                </ul>     
                
                			
                
                </div>
                <div class="post-footer"><?php the_tags(__('<strong>Tags: </strong>','templatic'), ', '); ?></div>
            </div>
        </div>

        <?php endwhile; ?>
    <?php endif; ?>

 

	<?php if (function_exists('dynamic_sidebar') && dynamic_sidebar('Page Content Below')){?>
            <!--  <div class="allinone"> </div> all in one #end --> 
        <?php } else {?>  <?php }?>